<?php
namespace Club\Model;
use Think\Model;
class FundingHotelModel extends Model {
    /**
     * model的中文名称
     */
    public $modelName = '筹单';

    /**
     * model的icon
     */
    public $modelIcon = 'icon-certificate';

    
    protected $_auto = [

        ["start_time", "strtotime", 3, "function"],
        ["end_time", "strtotime", 3, "function"],
        ["create_time", "strtotime", 3, "function"],
        ["update_time", "strtotime", 3, "function"],
        ["create_time", "time", 1, "function"],
        ["update_time", "time", 2, "function"],
        ["start_time", "time", 1, "function"],
        ["end_time", "time", 1, "function"],

    ];
    protected $_validate = [
        ["id", "require", "ID必须填写!"],
        ["hotel_location", "require", "酒店位置必须填写!"],
        ["hotel_type", "require", "酒店类型必须填写!"],
        ["star", "require", "星级必须填写!"],
        ["start_time", "require", "入住时间必须填写!"],
        ["end_time", "require", "离店时间必须填写!"],
        ["create_time", "require", "创建时间必须填写!"],
        ["update_time", "require", "更新时间必须填写!"],
    ];
    public $excel = false;
    public $fieldMap = [
        "id"=>[
            "type"=>"input",
            "name"=>"ID",
            "lists"=>true,
            "search"=>true,
            "input"=>false,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "principal_id"=>[
            "type"=>"input",
            "name"=>"主表ID",
            "lists"=>false,
            "search"=>false,
            "input"=>false,
            "required"=>false,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "hotel_location"=>[
            "type"=>"input",
            "name"=>"酒店位置",
            "lists"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "hotel_type"=>[
            "type"=>"select",
            "name"=>"酒店类型",
            "lists"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"快捷酒店,星级宾馆,民宿公寓,会议,其他",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "star"=>[
            "type"=>"select",
            "name"=>"星级",
            "lists"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"1,2,3,4,5",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "start_time"=>[
            "type"=>"date",
            "name"=>"入住时间",
            "lists"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "end_time"=>[
            "type"=>"date",
            "name"=>"离店时间",
            "lists"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "create_time"=>[
            "type"=>"datetime",
            "name"=>"创建时间",
            "lists"=>false,
            "search"=>false,
            "input"=>false,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "update_time"=>[
            "type"=>"datetime",
            "name"=>"更新时间",
            "lists"=>false,
            "search"=>false,
            "input"=>false,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
    ];
}